"""
@Project ：Python_Learning 
@File    ：14.最长公共前缀.py
@IDE     ：PyCharm 
@Author  ：zhupp
@Date    ：2024/10/14 14:59 
"""



test1 = []
# test2 = ["a"]
#
# def long(strs: list[str]):
#     if strs is None or len(strs) == 0:
#         return ''
#     min_length = min(len(s) for s in strs)
#     for i in range(min_length):                 # 遍历最短字符串的次数
#         char = strs[0][i]
#         if any(s[i] != char for s in strs):
#             return strs[0][:i]
#     return strs[0][:min_length]
#
# print(long(test2))
print(test1[-1])


